package com.i360day.redis.annotation;

import java.lang.annotation.*;

/**
 * <p> @Author liju.z <p>
 *
 * <p> @Description 限制重复提交 <p>
 *
 * <p> @Date  16:51 <p>
 *
 * <p> @Param  <p>
 *
 * <p> @return  <p>
 **/
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RepeatSubmit {
    /**
     * <p> @Author liju.z <p>
     *
     * <p> @Description //TODO 自定义key值 <p>
     *
     * <p> @Date  14:45 <p>
     **/
    String key() default "";

    /**
     * <p> @Author liju.z <p>
     *
     * <p> @Description 限制次数 <p>
     *
     * <p> @Date  16:52 <p>
     **/
    int limitCount() default 1;

    /**
     * <p> @Author liju.z <p>
     *
     * <p> @Description 限制多少秒内不能访问 (单位秒)<p>
     *
     * <p> @Date  16:55 <p>
     **/
    int time() default 1;

    /**
     * <p> @Author liju.z <p>
     *
     * <p> @Description 错误描述 <p>
     *
     * <p> @Date  10:55 <p>
     **/
    String errorMsg() default "";

    /**
     * <p> @Author liju.z <p>
     *
     * <p> @Description //TODO 返回删除 <p>
     *
     * <p> @Date  10:48 <p>
     **/
    boolean afterReturningDelete() default false;
}
